package edu.njust.httpmanager.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import edu.njust.httpmanager.entity.Program;
import edu.njust.httpmanager.entity.dto.ProgramDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ProgramMapper extends BaseMapper<Program> {

    List<ProgramDto> getUserProgramWithAuth(@Param("userId") Long userId);

    ProgramDto getUserProgramWithAuthById(@Param("userId") Long userId, @Param("programId") Long programId);

    List<ProgramDto> getUserProgramWithName(@Param("userId") Long userId,@Param("programName")String programName );
}
